package com.zzjc.web.mapper;

import com.zzjc.web.entity.Device;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface DeviceDao {

    List<Device> getDeviceByList(@Param("deviceList") List<String> deviceList);

    Device getDeviceById(@Param("deviceId") String deviceId);

    int insertDevice(Device device);

    int updateDevice(Device device);

    int deleteDevice(@Param("deviceList") List<String> deviceList);

    List<Device> findAll(Device device);
} 